<!DOCTYPE html>
<html>
<head>
    <title>投诉信息</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="关键字">
            </div>
            <div class="form-group col-sm-2">
                <select name="" id="" class="form-control" :disabled="showInfo" v-model="q.user">
                    <option value="">-全部业主-</option>
                    <option :value="l.userId" v-for="l in list">{{l.username}}</option>
                </select>
            </div>

            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改完成状态</a>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            <a class="btn btn-primary" @click="info"><i class="fa fa-info"></i>&nbsp;详情</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-success">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">投诉标题</div>
                <div class="col-sm-10 fcs">
                    {{ts.name}}
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">详情</div>
                <div class="col-sm-10 fcs">
                    {{ts.content}}
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">投诉人</div>
                <div class="col-sm-10 fcs" v-if="ts.sysUserEntity">
                    {{ts.sysUserEntity.username}}
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">物业完成状态</div>
                <div class="col-sm-10 fcs">
                    <select name="" id="" class="form-control" :disabled="showInfo" v-model="ts.state">
                        <option value="待确认">待确认</option>
                        <option value="已完成">已完成</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用户确认状态</div>
                <div class="col-sm-10 fcs">
                    {{ts.ustate}}
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定" v-if="!showInfo"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/admin/tsall.js?_${date.systemTime}"></script>
</body>
</html>